/**
 * 判断访问的是安卓还是ios
*/


export default function navigatorUserAgent () {
  let ran = navigator.userAgent
  let isAndroid = ran.indexOf('Android') > -1 || ran.indexOf('Linux') > -1
  let isIOS = !!ran.match(/\(i[^;]+;( U;)? CPU.+Mac OS X/)
  if (isAndroid) {
    return "android"
  }
  if (isIOS) {
    return "ios"
  }
}